package com.xl.xlservice.model;

import lombok.Data;

@Data
public class ResultData<T> {
    private Integer code;

    private String msg;

    private T rows;

    private Integer total;

    public ResultData<T> buildResultData(Integer code, String msg, T data, Integer total) {
        this.setRows(data);
        this.setMsg(msg);
        this.setCode(code);
        this.setTotal(total);
        return this;
    }
}
